<%--
  Created by IntelliJ IDEA.
  User: 李鑫
  Date: 2024/11/16
  Time: 14:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>


hello <%= request.getAttribute("name")%>

<h1 style="text-align: center">表单验证</h1>
<div style="display: flex; width: 500px; gap: 10px; margin: auto">
    <form action="reg" method="post" enctype="multipart/form-data" style="display: grid; grid-template-columns: 100px 200px; gap: 10px;
    width: 330px; margin: auto; padding: 10px; border: 1px solid #777">
        用户名:<input name="name">
        年龄:<input name="age">
        性别:<input name="gender">
        邮箱:<input name="email">
        生日:<input name="birthday" type="date">
        邮箱:<input name="head" type="file">
        <input  style="grid-column: 2" type="submit" value="注册">
        <input formaction="uploadHead"  style="grid-column: 2" type="submit" value="上传头像">

    </form>
</div>

<%
    System.out.println("========test.jsp===============");
%>
</body>
</html>
